package org.gikolet.ch2.android.viewer;

import android.content.Context;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.ContextMenu.ContextMenuInfo;

public interface Viewer {
	void onCreate(Bundle savedInstanceState);

	void saveInstanceState(Bundle outState);

	void restoreInstanceState(Bundle savedInstanceState);

	void createView(ViewGroup parent);

	boolean createMenu(Menu menu);

	void createContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo);

	boolean onMenuItemSelected(MenuItem item);

	boolean onContextItemSelected(MenuItem item);

	void setFocus();

	void setActivityFeature(ActivityFeature activityFeature);

	boolean dispatchKeyEvent(KeyEvent event);

	ActivityFeature getActivityFeature();

	Context getContext();
}
